import { createStore } from 'vuex'

export default createStore({
  state: {
    id: 0,
    ids: 1
  },
  getters: {
    getCount: state => {
      return state.id
    },
    getId: state => {
      return state.ids
    }
  },
  mutations: {
    edit (state, num) {
      state.id = num
    },
    idns (state, id) {
      state.ids = id
      console.log(state.id)
    }
  },
  actions: {
  },
  modules: {
  }
})
